import java.awt.*;

import javax.swing.*;

public class TopPanel  extends JPanel{
	private static final long serialVersionUID = 1L;

	public TopPanel() {
		super();
		
		// variable declaration
		JPanel panel = new JPanel();
		panel.setLayout(null);
		panel.setMinimumSize(new Dimension(800, 600));
		
		JPanel PotPanel = new JPanel();
		JLabel PotLabel = new JLabel();
		JLabel PotChips = new JLabel();
		
		JPanel Player1 = new JPanel();
		JLabel Name1 = new JLabel();
		JLabel Chips1 = new JLabel();
		JLabel Icon1 = new JLabel();
		
		JPanel Player2 = new JPanel();
		JLabel Name2 = new JLabel();
		JLabel Chips2 = new JLabel();
		JLabel Icon2 = new JLabel();
		
		JPanel Player3 = new JPanel();
		JLabel Name3 = new JLabel();
		JLabel Chips3 = new JLabel();
		JLabel Icon3 = new JLabel();
		
		JPanel Player4 = new JPanel();
		JLabel Name4 = new JLabel();
		JLabel Chips4 = new JLabel();
		JLabel Icon4 = new JLabel();
		
		JPanel Player5 = new JPanel();
		JLabel Name5 = new JLabel();
		JLabel Chips5 = new JLabel();
		JLabel Icon5 = new JLabel();
		
		//Display current bids added together
		PotPanel.setLayout(new BorderLayout());
		PotLabel.setText("Pot");
		PotPanel.add(PotLabel, BorderLayout.NORTH);
		
		PotChips.setText("Money");
		PotPanel.add(PotChips, BorderLayout.CENTER);
		
		//Player 1 box
		Player1.setLayout(new BorderLayout());
		Name1.setText("Name");
		Player1.add(Name1, BorderLayout.NORTH);

		Chips1.setText("Chips");
		Player1.add(Chips1, BorderLayout.SOUTH);

		Icon1.setText("icon");
		Player1.add(Icon1, BorderLayout.CENTER);
		
		//Player 2 box
		Player2.setLayout(new BorderLayout());
		Name2.setText("Name");
		Player2.add(Name2, BorderLayout.NORTH);

		Chips2.setText("Chips");
		Player2.add(Chips2, BorderLayout.SOUTH);

		Icon2.setText("icon");
		Player2.add(Icon2, BorderLayout.CENTER);
				
		//Player 3 box
		Player3.setLayout(new BorderLayout());
		Name3.setText("Name");
		Player3.add(Name3, BorderLayout.NORTH);

		Chips3.setText("Chips");
		Player3.add(Chips3, BorderLayout.SOUTH);

		Icon3.setText("icon");
		Player3.add(Icon3, BorderLayout.CENTER);
				
		//Player 4 box
		Player4.setLayout(new BorderLayout());
		Name4.setText("Name");
		Player4.add(Name4, BorderLayout.NORTH);

		Chips4.setText("Chips");
		Player4.add(Chips4, BorderLayout.SOUTH);

		Icon4.setText("icon");
		Player4.add(Icon4, BorderLayout.CENTER);
				
		//Player 5 box
		Player5.setLayout(new BorderLayout());
		Name5.setText("Name");
		Player5.add(Name5, BorderLayout.NORTH);

		Chips5.setText("Chips");
		Player5.add(Chips5, BorderLayout.SOUTH);

		Icon5.setText("icon");
		Player5.add(Icon5, BorderLayout.CENTER);
		
		//adds components to panel
		panel.add(PotPanel);
		panel.add(Player1);
		panel.add(Player2);
		panel.add(Player3);
		panel.add(Player4);
		panel.add(Player5);
		
		//Sets component bounds
		PotPanel.setBounds(355, 200, 80, 50);
		Player1.setBounds(14, 115, 100, 125);
		Player2.setBounds(140, 15, 100, 125);
		Player3.setBounds(350, 15, 100, 125);
		Player4.setBounds(542, 15, 100, 125);
		Player5.setBounds(685, 115, 100, 125);
		
		//Panel Preferences
		panel.setPreferredSize(new Dimension(800,300));
		panel.setMinimumSize(new Dimension(800,300));
		panel.setMaximumSize(new Dimension(1920,600));
		panel.setBorder(BorderFactory.createLineBorder(Color.black));
		panel.setBackground(Color.green);
		
		add(panel);
		setPreferredSize(new Dimension(800,300));
		setMaximumSize(new Dimension(1920,600));
	}

}
